package com.ruoyi.project.mini.goods.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品基本信息对象 ly_goods
 *
 * @author luoyong
 * @date 2022-01-21
 */
public class Minigoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 商品编号
     */
    @Excel(name = "商品编号")
    private String goodsSn;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String name;

    /**
     * 所属类目ID
     */
    @Excel(name = "所属类目ID")
    private Long categoryId;

    /**
     * $column.columnComment
     */
    @Excel(name = "品牌id", readConverterExp = "$column.readConverterExp()")
    private Long brandId;

    /**
     * 商品宣传图片列表，采用JSON数组格式
     */
    @Excel(name = "商品宣传图片列表，采用JSON数组格式")
    private String gallery;

    /**
     * 商品关键字
     */
    @Excel(name = "商品关键字")
    private String keywords;

    /**
     * 商品简介
     */
    @Excel(name = "商品简介")
    private String brief;

    /**
     * 是否上架
     */
    @Excel(name = "是否上架")
    private Integer isOnSale;

    /**
     * $column.columnComment
     */
    @Excel(name = "排序", readConverterExp = "$column.readConverterExp()")
    private Long sortOrder;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String picUrl;

    /**
     * 商品分享朋友圈图片
     */
    @Excel(name = "商品分享朋友圈图片")
    private String shareUrl;

    /**
     * 是否新品首发
     */
    @Excel(name = "是否新品首发")
    private Integer isNew;

    /**
     * 是否人气推荐
     */
    @Excel(name = "是否人气推荐")
    private Integer isHot;

    /**
     * 单位
     */
    @Excel(name = "商品单位")
    private String unit;

    /**
     * 专柜价格
     */
    @Excel(name = "专柜价格")
    private BigDecimal counterPrice;

    /**
     * 零售价格
     */
    @Excel(name = "零售价格")
    private BigDecimal retailPrice;

    /**
     * 详细介绍
     */
    @Excel(name = "商品详细介绍")
    private String detail;

    /**
     * 浏览量
     */
    @Excel(name = "浏览量")
    private Long browse;

    /**
     * 已销售总量
     */
    @Excel(name = "已销售总量")
    private Long sales;

    /**
     * 逻辑删除
     */
    @Excel(name = "逻辑删除")
    private Integer deleted;

    /**
     * 供货单位
     */
    @Excel(name = "供货单位")
    private String commpany;

    /**
     * 批发价格
     */
    @Excel(name = "批发价格")
    private BigDecimal wholesalePrice;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setGallery(String gallery) {
        this.gallery = gallery;
    }

    public String getGallery() {
        return gallery;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getBrief() {
        return brief;
    }

    public void setIsOnSale(Integer isOnSale) {
        this.isOnSale = isOnSale;
    }

    public Integer getIsOnSale() {
        return isOnSale;
    }

    public void setSortOrder(Long sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() {
        return sortOrder;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setCounterPrice(BigDecimal counterPrice) {
        this.counterPrice = counterPrice;
    }

    public BigDecimal getCounterPrice() {
        return counterPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public void setBrowse(Long browse) {
        this.browse = browse;
    }

    public Long getBrowse() {
        return browse;
    }

    public void setSales(Long sales) {
        this.sales = sales;
    }

    public Long getSales() {
        return sales;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setCommpany(String commpany) {
        this.commpany = commpany;
    }

    public String getCommpany() {
        return commpany;
    }

    public void setWholesalePrice(BigDecimal wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }

    public BigDecimal getWholesalePrice() {
        return wholesalePrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodsSn", getGoodsSn())
                .append("name", getName())
                .append("categoryId", getCategoryId())
                .append("brandId", getBrandId())
                .append("gallery", getGallery())
                .append("keywords", getKeywords())
                .append("brief", getBrief())
                .append("isOnSale", getIsOnSale())
                .append("sortOrder", getSortOrder())
                .append("picUrl", getPicUrl())
                .append("shareUrl", getShareUrl())
                .append("isNew", getIsNew())
                .append("isHot", getIsHot())
                .append("unit", getUnit())
                .append("counterPrice", getCounterPrice())
                .append("retailPrice", getRetailPrice())
                .append("detail", getDetail())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("browse", getBrowse())
                .append("sales", getSales())
                .append("deleted", getDeleted())
                .append("commpany", getCommpany())
                .append("wholesalePrice", getWholesalePrice())
                .toString();
    }
}
